Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

Access NotesAPI on startup

Hello,

i´m developing a plugin which needs to access a database on a server (for example names.nsf).
It should run on Notes startup.
The first problem was, the plugin gets launched before the Notes login process has completed.

So i registered a LoginContextEventListener, and in its handleLogin method i use a NotesSessionJob to access the database.

The problem is, even that SecurePlatform.isLoggedIn() says 'true' it looks like the login process still has not completed.
The error messages is 'Login dialog was canceled by the user' (translated from german).
Strange, thanks to SSO there is no dialog which could have been canceled...


A workaround is to sleep at least 4 seconds (on my client, maybe longer on slower clients) at the beginning of the NotesSessionJob.
However i don´t like sleeps too much.

Maybe its a bug in SecurePlatform.isLoggedIn() or is there a better method?

Any ideas/suggestions are welcome, thanks in advance.
Thomas


Feedback number WEBB84NEUP created by Thomas TM Martin on 04/19/2010


Feedback response number WEBB8ETFFF created by ~Lex Asaniterjip on 03/10/2011

Open Mic Call: All about Notes data... (~Dana Zenkilita... 24.Feb.11)
. . DOLS (~Mario Kiaings 9.Mar.11)
. . Problems losing content of file att... (~Vera Brenikony... 9.Mar.11)
. . . . Known issue (fixed in 8.5.2) (~Tip Opjipymanl... 10.Mar.11)
. . Problems with OpenHelpDocument (~Vera Brenikony... 9.Mar.11)
. . Replica ID change (~Ted Nimkroster... 10.Mar.11)
. . Programatically opening an composit... (~Lex Asaniterji... 10.Mar.11)
. . Access NotesAPI on startup (~Lex Asaniterji... 10.Mar.11)
. . lotus.domino.Session, java.lang.Lin... (~Lex Asaniterji... 10.Mar.11)
. . Http Service (~Lex Asaniterji... 10.Mar.11)
. . Notes error: Index is not to be gen... (~Lex Asaniterji... 10.Mar.11)
. . Problem with NotesDatabaseData clas... (~Lex Asaniterji... 10.Mar.11)
. . Sync databases between domino serve... (~Lorraine Umniz... 15.Mar.11)
. . Running maintenance utilities on ND... (~Mario Desfrees... 16.Mar.11)
. . Answers? (~Vera Brenikony... 31.Mar.11)
. . Are there plans to increase the siz... (~Holly Brefreel... 9.Mar.11)
. . Corrupted Database (~Justin Desfoob... 15.Mar.11)
. . . . Contact (~Miriam Quetama... 25.Apr.12)
. . How do DAOS databases behave? (~Holly Nonresat... 16.Mar.11)
. . Compacting mail.box Database (~Frank Despones... 16.Mar.11)
. . . . Compacting mail boxes (~Holly Nonresat... 29.Jul.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS